package org.bukkit.pm;

import org.bukkit.plugin.java.JavaPlugin;

public class PluginShutdownHook extends Thread{

	private JavaPlugin _plugin;
	
	public PluginShutdownHook(JavaPlugin plugin){
		_plugin = plugin;
		Runtime.getRuntime().addShutdownHook(this);
	}
	
	public void run(){
		_plugin.onDisable();
	}
}
